import request from '@/config/axios'
import requestDYXT from '@/config/axios'

export const getOutCompanyList = async (params) => {
  return await request.getJL({
    url: '/queue/customer-account-mgr/get-dispatch-total-balance-total',
    params
  })
}


export const getDispatchCustomerBalancePage = async (params, customerName?: string) => {
  const requestParams = {
    ...params,
    customerName: customerName
  }
  return await request.getOriginalJL({
    url: '/queue/customer-account-mgr/get-dispatch-customer-balance-page',
    params: requestParams
  })
}

export const getDispatchTransactionRecordPage = async (params) => {
  return await request.getJL({
    url: '/queue/customer-account-mgr/get-dispatch-transaction-record-page',
    params
  })
}
export const getDispatchTransactionRecordTotal = async (params) => {
  return await request.getJL({
    url: '/queue/customer-account-mgr/get-dispatch-transaction-record-total',
    params
  })
}

export const getTransactionRecordDetails = async (params) => {
  return await requestDYXT.getDYXT({
    url: '/queue/customer-account-mgr/transaction-record-details',
    data: params
  })
}
